// 引入Service和请求头ServiceName
import { Service, ServiceName } from '@/network/http.js'
import store from '@/store/index.js' // 引入store

const publicapi = {
    /**
        * 获取主列表数据
        */
    gettabledata (params) {
      return Service.get(
         `/${ServiceName}/api/external/mtc_company/queryall`,{params}
      )
    }, 
    /**
      * 审核数据
      */
    auditdata (params) {
      store.commit('changeStatus', true)
      return Service.put(
          `/${ServiceName}/api/external/mtc_company/updatestatusbyid?id=${params}`
      )
    },
    /**
      * 获取详情
      */
    queryApprovalById (params) {
      return Service.get(
        `/${ServiceName}/api/external/mtc_company/queryApprovalById?id=${params}`
      )
    },
}

export default publicapi
